#!/bin/csh -f

rf -rf logs *.gpd reports spef
mkdir logs -p
mkdir spef -p
rm -rf spef/*
mkdir reports -p

sed -i 's#^BLOCK: .*#BLOCK: soc_top#g' scripts/*.cmd
sed -i 's#^TOP_DEF_FILE: .*#TOP_DEF_FILE: soc_top.starrc.def.gz#g' scripts/*.cmd

ln -sf /team/riscv/liangzecheng/BackEnd/innovus/output/soc_top.starrc.def.gz .

#### extract spef #####
/opt/EDA/Synopsys/starrc_2016/bin/StarXtract -clean ./scripts/extract_cmax_m40c.cmd 
/opt/EDA/Synopsys/starrc_2016/bin/StarXtract -clean ./scripts/extract_cmax_125c.cmd 
/opt/EDA/Synopsys/starrc_2016/bin/StarXtract -clean ./scripts/extract_cmin_125c.cmd 
/opt/EDA/Synopsys/starrc_2016/bin/StarXtract -clean ./scripts/extract_cmin_m40c.cmd 
/opt/EDA/Synopsys/starrc_2016/bin/StarXtract -clean ./scripts/extract_typ_25c.cmd   

#/opt/EDA/Synopsys/starrc_2016/bin/StarXtract -clean ./scripts/extract_rcmax_m40c.cmd 
#/opt/EDA/Synopsys/starrc_2016/bin/StarXtract -clean ./scripts/extract_rcmax_125c.cmd 
#/opt/EDA/Synopsys/starrc_2016/bin/StarXtract -clean ./scripts/extract_rcmin_125c.cmd 
#/opt/EDA/Synopsys/starrc_2016/bin/StarXtract -clean ./scripts/extract_rcmin_m40c.cmd



